CC       = gcc
CXX      = g++

FLAGS    = -O3

NAME     = fboClass

#LIBS     = -lopengl32 -lglu32 -lglut32
LIBS     = -lGL -lGLU -lglut

OBJS     = GLee.o framebufferObject.o renderbuffer.o glErrorUtil.o helloGPGPU_GLSL_FBO.o

first: $(OBJS)
	@echo "Linking ...."
	$(CXX) -o $(NAME) $^ $(LIBS)
	@echo "Done !!!"

.cpp.o: $*.h
	@echo "Compiling C++ code ...."
	$(CXX) $(FLAGS) -c $*.cpp $(PATHINC)

.cc.o: $*.h
	@echo "Compiling C++ code ...."
	$(CXX) $(FLAGS) -c $*.cc $(PATHINC)

.c.o: $*.h
	@echo "Compiling C++ code ...."
	$(CC) $(FLAGS) -c $*.c $(PATHINC)

clean:
	rm -f *.o *~ .depend

all: first
